import React, {Component} from 'react';

class Demo extends Component {
    state ={
        textValue : ''
    }

    alter = (event) =>{
        this.setState({textValue:event.target.value})

    }


    render() {
        return (
            <div>
                <input type="text"  value={this.state.textValue} onChange={this.alter}/>
            </div>
        );
    }
}

export default Demo;